STEP 6: Time to use an if statement to see if the ball misses the goal!

  • In LOGIC, go to and drag in Greater Than?.
  • Change the test variable from my_var to random_height.
  • Change the test value from 0 to -100.

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)